<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>001</title>
	</head>
	<body style="height: 5000px;">
		<script type="text/javascript" src="js/bindEvent.js"></script>
		<script type="text/javascript">
			//给document绑定鼠标滚轮事件
			/*document.onmousewheel = function() {
				console.log("滚动滚轮了");
			}*/
			
			//调试火狐中的滚轮事件
			/*document.addEventListener("DOMMouseScroll",function() {
				console.log("火狐中滚动滚轮了");
			})*/
			
			
			//统一方式
			bindEvent(document,"mousewheel",function(e) {
				//console.log(123);
				//兼容IE
				var e = e || window.event;
				if (e.preventDefault) {
					e.preventDefault();
				} else{
					e.returnValue = false;
				}
			})
			
		</script>
	</body>
</html>
